//
//  WZPLoginField.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/10.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "WZPLoginField.h"
#import "UITextField+WZPPlaceholder.h"

@implementation WZPLoginField

-(void)awakeFromNib{
    [super awakeFromNib];
    self.tintColor = [UIColor whiteColor];
    // 设置占位文字的颜色  监听点击
    [self addTarget:self action:@selector(textBegin) forControlEvents:UIControlEventEditingDidBegin];
    // 监听结束点击
    [self addTarget:self action:@selector(textEnd) forControlEvents:UIControlEventEditingDidEnd];
    // 设置默认颜色
    self.placeholderColor = [UIColor lightGrayColor];

}
-(void)textBegin{
    self.placeholderColor = [UIColor whiteColor];
}
-(void)textEnd{
    self.placeholderColor = [UIColor lightGrayColor];

}
@end
